
class WinObj{
  name = "winObj";
  age = 12;
  constructor(name, age){
    name?this.name = name:""
     age?this.age = age:""
  }
  init(){
    console.log("my name is " + name+" ,age is " + age)
  }
}
export default WinObj;
// (function() {
//   // 这里是自调用函数体
//   window.winObj = WinObj
// })();